package arrays;

import java.util.Scanner;

public class arrays_19 {

    public static void main( String[] args ) {
            int result = 0;
            int user ;
            int first_Number = (int)(100*Math.random());
            int second_Number = (int)(100*Math.random());
            int operator = (int)(4*Math.random()+1);
            switch (operator){
                case 1:result = first_Number + second_Number;break;
                case 2:result = first_Number - second_Number;break;
                case 3:result = first_Number * second_Number;break;
                case 4:result = first_Number / second_Number;break;
                default:break;
            }
           // System.out.println(first_Number + " " + second_Number + result + " ," + operator);
            System.out.println( "请输入你的猜测吧：" );
            Scanner scanner = new Scanner(System.in) ;
            user = scanner.nextInt() ;
            if( user == result){
                System.out.println("恭喜你答对了！");
            }else{
                System.out.println("重新来一次吧！");
            }


    }

}

